package com.koron.css2.serviceManage.mapper;

import com.koron.css2.serviceManage.bean.CodeRuleBean;
import com.koron.css2.serviceManage.queryBean.CodeRuleQueryBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 编码规则Mapper类
 * @author 周新宇
 *
 */
public interface CodeRuleMapper {

	/**
	 * 新增
	 * @param bean
	 * @return
	 */
	public Integer saveCodeRule(CodeRuleBean bean);
	
	/**
	 * 更新
	 * @param bean
	 * @return
	 */
	public Integer updateCodeRule(CodeRuleBean bean);
	
	/**
	 * 查询
	 * @param bean
	 * @return
	 */
	public List<CodeRuleBean> findCodeRule(CodeRuleQueryBean bean);

	
	/**
	 * 根据id查CodeRule数据
	 * @param id
	 * @return
	 */
	public CodeRuleBean findCodeRuleById(@Param("id") String id);
	
	/**
	 * 根据编号查CodeRule数据
	 * @param code
	 * @return
	 */
	public CodeRuleBean findCodeRuleByCode(@Param("ruleCode") String code);
	
}
